package com.lsu.app.bean;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;

/**
 * 分词器频率词
 * @Date 2023-11-13 19:48:29
 * @author hjj
 */
@Data
@TableName("vocabulary")
@ApiModel(value="Vocabulary对象", description="分词器频率词")
public class Vocabulary implements Serializable {

    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    private Integer id;

    @NotNull(message="[课程id]不能为空")
    @ApiModelProperty("课程id")
    private Integer courseId;

    @Size(max= 32,message="编码长度不能超过32")
    @ApiModelProperty("词")
    private String words;

    @ApiModelProperty("频率")
    private Integer frequency;

    @ApiModelProperty("1褒义词，2中性，3贬义词")
    private Integer type;

    public Vocabulary() {
    }

    public Vocabulary(Integer courseId, String words,Integer type) {
        this.courseId = courseId;
        this.words = words;
        this.type=type;
    }
}
